proxy_host=127.0.0.1
if (uname -a | grep WSL2 > /dev/null); then
    proxy_host=`cat /etc/resolv.conf|grep nameserver|awk '{print $2}'`
fi
export proxy_host
export all_proxy=socks5://$proxy_host:7893
export http_proxy=http://$proxy_host:7893
export https_proxy=http://$proxy_host:7893

# vim: ft=zsh
